<?php

namespace app\validate;
use app\BaseValidate;
class TaskCategory extends BaseValidate
{
    protected $rule = [
        'name'  => 'require|length:2,20|unique:task_category',
    ];

    protected $message  =   [
        'name.require' => '任务类名称必须填写',
        'name.length' => '任务类名称长度2至20个字符',
        'name.unique' => '任务类名称不能重复'
    ];
}
